<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>登录页</title>
</head>
<body>
<h1>登录页</h1>
  <!-- 错误信息 -->
  <div name="message" style="color: red">
    {% if message %}
      {{ message }}
    {% endif %}
  </div>
  {#登录表单#}
  <div>
    <form action="/login/" method="post">
      {% csrf_token %}
      <lable>用户名：</lable>
      <input type="text" name="username" placeholder="请输入用户名">
      <lable>密码：</lable>
      <input type="password" name="password" placeholder="请输入用户名">
      <input type="submit" value="登录">
    </form>
    <a href="/register/">去注册</a>
  </div>
</body>
</html>